/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('v_articleitems', {
    Art_ID: {
      type: DataTypes.STRING(37),
      allowNull: false
    },
    Art_Title: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    Art_Label: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    Art_Imgs: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    Art_SignImg_s: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Art_SignImg_b: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Art_Content: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    Art_CreateTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    Art_ReadCount: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    Art_Intro: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    AR_LabelCode: {
      type: DataTypes.CHAR(10),
      allowNull: true
    },
    Art_ArticleFrom: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    Art_UserID: {
      type: DataTypes.STRING(36),
      allowNull: true,
      defaultValue: '0'
    },
    Art_VideoPath: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Art_IsRecommend: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0'
    },
    Art_IsPreShowImg: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0'
    },
    Art_ViewStyle: {
      type: DataTypes.INTEGER(6),
      allowNull: true,
      defaultValue: '0'
    },
    Art_IsHide: {
      type: DataTypes.INTEGER(6),
      allowNull: true,
      defaultValue: '0'
    }
  }, {
    tableName: 'v_articleitems'
  });
};
